package edu.haiu.training.data1.content;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

public class DeleteContent {
	public String deleteContent() throws Exception{
		Content content = new Content();
		try {
			HttpServletRequest ht = ServletActionContext.getRequest();
			int idContent= Integer.parseInt(ht.getParameter("idContent1"));
			content.deleteContent(idContent);
		} catch (NumberFormatException e) {
			e.printStackTrace();
		}
		return "success";
	}
}
